package com.sunwayworld.basemodule.business.prefolder.bean;

import com.sunwayworld.framework.data.annotation.Id;
import com.sunwayworld.framework.data.annotation.NotNull;
import com.sunwayworld.framework.data.annotation.Table;
import com.sunwayworld.framework.data.annotation.Transient;
import com.sunwayworld.framework.support.domain.Insertable;
import com.sunwayworld.framework.support.domain.AbstractInsertable;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;
import com.alibaba.fastjson.annotation.JSONField;

/**
 * 任务下发
 * 
 * @author hul@sunwayworld.com
 * @date 2023-01-30
 */
@Table("T_LIMS_PRE_FOLDER")
public class LimsPreFolderBean extends AbstractInsertable<Long> implements Insertable<Long> {

    @Transient
    private static final long serialVersionUID = -82566196618711043L;

    @Id
    private Long id;// 主键
    private Long batchId;// 订单ID
    private String batchCode;// 订单编号
    private Long batchSampleId;// 订单样本Id
    private Long sampleId;// 样本Id
    private String sampleCode;// 样本编号
    private String sampleTypeCode;// 样本类型编码
    private String sampleTypeName;// 样本类型名称
    private Long productId;// 产品Id
    private String productCode;// 产品编号
    private String productName;// 产品名称
    private Long productEtId; // 项目模板Id
    private Long etId;// 模板id
    private String etCode;// 模板编号
    private String etName;// 实验模板名称
    private Long judgId;// 判定依据id
    private String judgCode;// 判定依据编号
    @NotNull(defaultValue = "N")
    private String type;// 任务类型  // N:正常流转、H:历史样本、M:混样样本、S:分样样本

    @NotNull(defaultValue = "draft")
    private String status;// 状态
    private String experimentNo;// 实验编号
    private String operationBatch;// 运营批次
    private String remark;// 备注
    private String createdById;// 制单人编码
    private String createdByName;// 制单人名称
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;// 制单时间
    private String createdByOrgId;// 制单人单位编码
    private String createdByOrgName;// 制单人单位名称
    @NotNull(defaultValue = "0")
    private String addInBatch;// 是否已录入批次

    public String getEtName() {
        return etName;
    }

    public void setEtName(String etName) {
        this.etName = etName;
    }

    public Long getJudgId() {
        return judgId;
    }

    public void setJudgId(Long judgId) {
        this.judgId = judgId;
    }

    public String getJudgCode() {
        return judgCode;
    }

    public void setJudgCode(String judgCode) {
        this.judgCode = judgCode;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBatchId() {
        return batchId;
    }

    public void setBatchId(Long batchId) {
        this.batchId = batchId;
    }

    public String getBatchCode() {
        return batchCode;
    }

    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode;
    }

    public Long getBatchSampleId() {
        return batchSampleId;
    }

    public void setBatchSampleId(Long batchSampleId) {
        this.batchSampleId = batchSampleId;
    }

    public Long getSampleId() {
        return sampleId;
    }

    public void setSampleId(Long sampleId) {
        this.sampleId = sampleId;
    }

    public String getSampleCode() {
        return sampleCode;
    }

    public void setSampleCode(String sampleCode) {
        this.sampleCode = sampleCode;
    }

    public String getSampleTypeCode() {
        return sampleTypeCode;
    }

    public void setSampleTypeCode(String sampleTypeCode) {
        this.sampleTypeCode = sampleTypeCode;
    }

    public String getSampleTypeName() {
        return sampleTypeName;
    }

    public void setSampleTypeName(String sampleTypeName) {
        this.sampleTypeName = sampleTypeName;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Long getProductEtId() {
        return productEtId;
    }

    public void setProductEtId(Long productEtId) {
        this.productEtId = productEtId;
    }

    public Long getEtId() {
        return etId;
    }

    public void setEtId(Long etId) {
        this.etId = etId;
    }

    public String getEtCode() {
        return etCode;
    }

    public void setEtCode(String etCode) {
        this.etCode = etCode;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getExperimentNo() {
        return experimentNo;
    }

    public void setExperimentNo(String experimentNo) {
        this.experimentNo = experimentNo;
    }

    public String getOperationBatch() {
        return operationBatch;
    }

    public void setOperationBatch(String operationBatch) {
        this.operationBatch = operationBatch;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreatedById() {
        return createdById;
    }

    public void setCreatedById(String createdById) {
        this.createdById = createdById;
    }

    public String getCreatedByName() {
        return createdByName;
    }

    public void setCreatedByName(String createdByName) {
        this.createdByName = createdByName;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public String getCreatedByOrgId() {
        return createdByOrgId;
    }

    public void setCreatedByOrgId(String createdByOrgId) {
        this.createdByOrgId = createdByOrgId;
    }

    public String getCreatedByOrgName() {
        return createdByOrgName;
    }

    public void setCreatedByOrgName(String createdByOrgName) {
        this.createdByOrgName = createdByOrgName;
    }

    public String getAddInBatch() {
        return addInBatch;
    }

    public void setAddInBatch(String addInBatch) {
        this.addInBatch = addInBatch;
    }
}
